<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #app img{
            float: left;
        }
        #app p{
            background-color: #eee;

        }
        .bfc{
            overflow: hidden;/*可以出发BFC Block format context 块级格式化上下文*/
        }
    </style>
</head>
<body>
    <div id="app" class="bfc">
        <img src="img/tx1.png" alt="">
        <p class="bfc">一些文字。。。</p>
    </div>
</body>
</html>